﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;
using System.Collections;

namespace WLS
{
    #region video

    public class data
    {
        public byte uplaod;
        public string nazev, pripona, datum, path;
        public double velikost;
        public bool law;
        public data(string nazev_, byte upload_, string pripona_, double velikost_, string datum_, string path_, bool law_, silverlights silver_, youtube yout_)
        {
            nazev = nazev_;
            uplaod = upload_;
            pripona = pripona_;
            velikost = velikost_;
            datum = datum_;
            path = path_;
            law = law_;
            silver = silver_;
            yout = yout_;

        }

        public data()
        {
        }


        public silverlights silver;
        public youtube yout;
    }

    public class youtube
    {
        public string filesetname, summary, keywords;
        public bool type;
        public int category;
        public youtube(string filesetname_, string summary_, int category_, string keywords_, bool type_)
        {
            filesetname = filesetname_;
            summary = summary_;
            category = category_;
            keywords = keywords_;
            type = type_;
        }


        public youtube()
        {
        }
    }



    public class silverlights
    {
        public string filesetname, summary;
        public silverlights(string filesetname_, string summary_)
        {
            filesetname = filesetname_;
            summary = summary_;
        }


        public silverlights()
        {
        }
    }


    public class model
    {
        public string filesetname, summary, category, keywords, type;
        public model(string filesetname_, string summary_, string category_, string keywords_, string type_)
        {
            filesetname = filesetname_;
            summary = summary_;
            category = category_;
            keywords = keywords_;
            type = type_;
        }
    }

    #endregion video


    #region setting

    [XmlRoot(ElementName = "Video list")]
    public class Videos
    {

        [XmlArray("Video")]
        [XmlArrayItem("Myvideo")]
        public list video = new list();

        public Videos()
        {
        }

    }

    public class list : List<data>
    {
    }






    [XmlRoot(ElementName = "Profile")]
    public class all_setting
    {
        public string sl_ac;
        public string sl_pass;
        public string yt_ac;
        public string yt_pass;
        public string log;
        public string lang;
        public bool up_messages;
        public bool encrypt_pass;
        public bool delete_video;

        public all_setting(string sl_ac_, string sl_pass_, string yt_ac_, string yt_pass_, string log_, string lang_, bool up_messages_, bool encrypt_pass_, bool delete_video_)
        {
            sl_ac = sl_ac_;
            sl_pass = sl_pass_;
            yt_ac = yt_ac_;
            yt_pass = yt_pass_;
            log = log_;
            lang = lang_;
            up_messages = up_messages_;
            encrypt_pass = encrypt_pass_;
            delete_video = delete_video_;
        }


        public delegate void ZmenaJazyku(string jazyk);
        public event ZmenaJazyku JazykZmenen;

        [XmlIgnore]
        public string jazyk
        {
            get { return this.lang; }
            set { this.lang = value; JazykZmenen(this.lang); }
        }

        public all_setting()
        { }

    }

    public class set
    {
        public all_setting p;
        public ArrayList videos;
        public set(all_setting p_, ArrayList videos_)
        {
            p = p_;
            videos = videos_;
        }

    }

    #endregion setting

}
